package com.syxx.oa.service;

import java.util.HashMap;
import java.util.List;

import com.syxx.oa.domain.Department;
import com.test.jbpm.Pager;

public interface DepartMentService {

	/**
	 * 添加或修改
	 * @param user
	 */
	public void addOrUpdate(Department dep);

	/**
	 * 根据id删除部门
	 * @param userId
	 */
	public void del(Long depId);
	
	/**
	 * 根据id删除部门
	 * @param userId
	 */
	public void del(Long[] depIds);
	
	/**
	 * 根据id查询部门
	 * @param userId
	 * @return
	 */
	public Department findDepById(Long depId);
	
	/**
	 * 分页查询部门
	 * @return
	 */
	public Pager<Department> findDepList();
	
	public List<Department> findDepList(HashMap<String, String> key);
}
